import request from '@/utils/request'

// 查询学习进度列表
export function listLearningProgress(query) {
  return request({
    url: '/system/learningProgress/list',
    method: 'get',
    params: query
  })
}

// 查询学习进度详细
export function getLearningProgress(progressId) {
  return request({
    url: '/system/learningProgress/' + progressId,
    method: 'get'
  })
}

// 新增学习进度
export function addLearningProgress(data) {
  return request({
    url: '/system/learningProgress',
    method: 'post',
    data: data
  })
}

// 修改学习进度
export function updateLearningProgress(data) {
  return request({
    url: '/system/learningProgress',
    method: 'put',
    data: data
  })
}

// 删除学习进度
export function delLearningProgress(progressId) {
  return request({
    url: '/system/learningProgress/' + progressId,
    method: 'delete'
  })
}
